import csv  
# with open('test.csv','rb') as myFile:  
#     lines=csv.reader(myFile)  
#     for line in lines:  
#         print line 


with open('./t.csv','wb') as myFile:
    myWriter=csv.writer(myFile)  
    myWriter.writerow([7,'g'])  
    myWriter.writerow([8,'h'])  
    myList=[[1,2,3],[4,5,6]]
    myList.append(['No rel="canonical" Element'])
    myWriter.writerows(myList) 